export const tableOption = {
  border: true, //是否带有纵向边框
  selection: true, //行最前面的选择框
  menuAlign: "center",
  searchLabelWidth: 110, //搜索项标题宽度
  searchIndex: 4, //筛选收缩
  searchIcon: true,
  align: "center", //对齐方式
  emptyText: '自定义暂无数据提示语',
  editDisplay: false,
  column: [
    {
      label: "临时唯一标识",
      prop: "tempId",
      hide: true,
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
    },
    {
      label: "档期码",
      prop: "scheduleId",
      type: "input",
      span: 12
    },
    {
      label: "券种类",
      prop: "type",
      type: "input",
      span: 12
    },
    {
      label: "券名称",
      prop: "name",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "券可兑换金额",
      prop: "redeemMoney",
      type: "input",
      span: 12
    },
    {
      label: "售价",
      prop: "salePrice",
      type: "input",
      span: 12
    },
    {
      label: "开始日期",
      prop: "startTime",
      type: "datetime",
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      span: 12
    },
    {
      label: "结束日期",
      prop: "endTime",
      type: "datetime",
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      span: 12
    },
    {
      label: "剩余比例",
      prop: "leftPercent",
      type: "input",
      span: 12
    },
    {
      label: "剩余数量",
      prop: "leftAmount",
      type: "input",
      span: 12
    },
    {
      label: "已售数量",
      prop: "saledAmount",
      type: "input",
      span: 12
    },
    {
      label: "券图片地址",
      prop: "imageBgUrl",
      type: "upload",
      editDisplay: true,
      listType: 'picture-img',
      dataType: 'string',
      tip: '只能上传jpg/png文件,且不超过500kb',
      action: '/admin/sys-file/upload',
      propsHttp: {
        res: 'data'
      },
    },
    {
      label: "券图片编码",
      prop: "imageBgId",
      type: "input",
      span: 12
    },
    {
      label: "券用途",
      prop: "purpose",
      type: 'select',
      dicData: [{
        label: '买券',
        value: 1
      }, {
        label: '领券',
        value: 2
      }, {
        label: '积分兑换券',
        value: 3
      }],
      span: 12
    },
    {
      label: "收券规则",
      prop: "rule",
      type: "input",
      span: 12
    },
  ]
}
